import json
import svar

rtmv=svar.load('svar_rtmv')

task_file = '/data/zhaoyong/Dataset/HighStitch/cc-highloop/task/task.json'

task=json.loads(open(task_file).read())

images=task["dataset"]["images"]

writer=rtmv.RTMVWriter('out.rtmv')



for image in images:
  writer.feedJPEG(image)
